<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>添加计划</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/common.css" />
		<style type="text/css">
			.mui-content-padded {
			     margin: 0px; 
			}
			.mui-input-row .mui-btn {
			    float: left; 
			    width: 22%;
			    padding: 10px 15px;
			    border: none;
			    background-color: transparent;
			}
			textarea{
			    background-color: transparent;
			}
			.mui-input-row {
			    background: rgba(255,255,255,.5);
		        height: 80px;
    			padding-top: 25px;

			}
			.okBtn>button{
		        font-size: 16px;
			    padding: 10px 0;
			    width: 100%;
			    margin: 40px 0 0 0;
			    background: rgba(255,255,255,.5);
			    color: #000;
			    border: none;
			}
		</style>
	</head>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">增加计划</h1>
		</header>
		<div class="mui-content">
			<div class="bg-img">
			    <div class="mui-input-row">
			        <label>计划标题</label>
			    <input type="text" class="mui-input-clear" placeholder="请输入计划标题">
			    </div>
			     <div class="mui-input-row">
		   			 <label class="mui-content-padded">结束日期</label>
					<button id='pickDateBtn' type="button" class="mui-btn mui-btn-block">选择日期</button>
			    </div>
			    <div class="mui-input-row">
			        <label>计划内容</label>
			        <textarea placeholder="请输入计划具体内容"></textarea>
			    </div>
			    <div class="mui-button-row okBtn">
			        <button type="button" class="mui-btn mui-btn-primary" >确认</button>
			    </div>
			</div>
		</div>
	<body>
		<script src="../../js/mui.min.js"></script>
		<script type="text/javascript" charset="utf-8">
			 //mui初始化
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});
			var info = document.getElementById("info");
			
			document.getElementById("pickDateBtn").onclick = function(){
				var dDate = new Date();
				dDate.setFullYear(2017, 02, 26);
				var minDate = new Date();
				minDate.setFullYear(2017, 00, 00);
				var maxDate = new Date();
				maxDate.setFullYear(2027, 12, 31);
				plus.nativeUI.pickDate(function(e) {
					var d = e.date;
					info.innerText = '您选择的日期是:' + d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate();
				}, function(e) {
					info.innerText = "您没有选择日期";
				}, {
					title: "请选择日期",
					date: dDate,
					minDate: minDate,
					maxDate: maxDate
				});
			};
		</script>
	</body>

</html>